import request from '@/utils/request'

// 查询成品检验列表
export function listInspection(query) {
  return request({
    url: '/mes/fb/inspection/list',
    method: 'get',
    params: query
  })
}

// 查询成品检验详细
export function getInspection(recordId) {
  return request({
    url: '/mes/fb/inspection/' + recordId,
    method: 'get'
  })
}

// 新增成品检验
export function addInspection(data) {
  return request({
    url: '/mes/fb/inspection',
    method: 'post',
    data: data
  })
}

// 修改成品检验
export function updateInspection(data) {
  return request({
    url: '/mes/fb/inspection',
    method: 'put',
    data: data
  })
}

// 删除成品检验
export function delInspection(recordId) {
  return request({
    url: '/mes/fb/inspection/' + recordId,
    method: 'delete'
  })
}
